<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="<?php echo ($sets->keyword); ?>" />
<meta name="description" content="<?php echo ($sets->description); ?>" />
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/news.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/index.js"></script>
<title>三原县信息网 -- 新闻资讯</title>
</head>
<body>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/basic.css" />
<div id="header">
    <div class="top">
        <strong>三原县 　<span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span></strong>
        <?php if(isset($_COOKIE['user'])): ?><span>欢迎,<b style="color:green;"><?php echo (cookie('user')); ?></b> <a href="__ROOT__/member.php">用户中心</a>|<a href="__ROOT__/User/logout">退出</a></span>
        <?php else: ?>
        <span><a href="<?php echo U('/User/reg');?>">注册</a> | <a href="<?php echo U('/User/login');?>">登陆</a></span><?php endif; ?>
    </div>
    <div class="body">
        <div class="logo"><a href="__ROOT__"><img src="__ROOT__/Tpl/Public/images/logo.gif" alt="网站logo"/></a></div>
        <div class="search">
            <form method="get" action="__ROOT__/Search/index/" class="search">
                <ul>
                    <li class="first"><span>信息</span><img src="__ROOT__/Tpl/Public/images/arrow.png" /></li>
                    <li class="show"><a href="#" title="1">信息</a></li>
                    <li class="show"><a href="#" title="2">新闻</a></li>
                </ul>
                <input type="hidden" name="type" id="type" value="1"/><input type="text" name="keyword" class="stext" value="<?php echo ($_GET['keyword']); ?>" /> <input type="submit" value="搜索" class="sub" />
            </form>
        </div>
        <div class="toppost">
            <a href="<?php echo U('/Post/index');?>" style="color:orange;">免费发布信息</a>
            <a href="__ROOT__/member.php/Index/myInfo" style="color:#666;" class="u">修改删除信息</a>
        </div>
    </div>
</div>
<div id="category">
    <ul>
        <li><a href="__ROOT__">首页</a></li>
        <li><a href="<?php echo U('/News');?>">新闻资讯</a></li>
        <?php if(is_array($teninfonav)): $i = 0; $__LIST__ = $teninfonav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/Category/index','id='.$value['id']);?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
        <li><a href="<?php echo U('/About');?>">关于本站</a></li>
    </ul>
</div>

    <div id="adver">
        <?php if(is_array($topbanner)): $i = 0; $__LIST__ = $topbanner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i; if(count($value) != 0): ?><p><a href="<?php echo ($value["link"]); ?>" target="_blank" title="<?php echo ($value["name"]); ?>"><img src="__ROOT__/<?php echo ($value["pic"]); ?>" alt="<?php echo ($value["name"]); ?>"/></a></p>
        <?php else: ?>
        <p class="tip">广告位招租 联系电话：xxxxx</p><?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt; 新闻资讯 </div>
    <div id="top">
        <div class="left">
            <div class="adver_pics">
                <ul class="pics">
                    <?php if(is_array($rollbanner)): $i = 0; $__LIST__ = $rollbanner;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i; if(count($value) != 0): ?><li><a href="<?php echo ($value["link"]); ?>" target="_blank" title="<?php echo ($value["name"]); ?>"><img src="__ROOT__/<?php echo ($value["pic"]); ?>" alt="<?php echo ($value["name"]); ?>"/></a></li>
                    <?php else: ?>
                    <li><img src="__ROOT__/Tpl/Public/images/no_adver.jpg" /></li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <ul class="num">
                    <li class="on" title="放上此图片将停止">1</li>
                    <li title="放上此图片将停止">2</li>
                    <li title="放上此图片将停止">3</li>
                </ul>
            </div>
            <div class="rec">
                <h2>推荐新闻</h2>
                <ul>
                   <?php if(is_array($recnews)): $i = 0; $__LIST__ = $recnews;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><em>[<?php echo (date('m-d',$value["addtime"])); ?>]</em><a href="<?php echo U('/NewsDetails/index','id='.$value['id']);?>" title="<?php echo ($value["ftitle"]); ?>" target="_blank"><?php echo (cuttext($value["title"],18)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
        <div class="center">
            <h3><a href="<?php echo U('/NewsDetails/index','id='.$topnews['id']);?>" title="<?php echo ($topnews["ftitle"]); ?>" target="_blank">头条：<?php echo ($topnews["title"]); ?></a></h3>
            <p>核心提示： <?php echo (cuttext($topnews["summary"],55)); ?><a href="<?php echo U('/NewsDetails/index','id='.$topnews['id']);?>" target="_blank">[查看全文]</a></p>
            <ul>
                <?php if(is_array($goodnews)): $i = 0; $__LIST__ = $goodnews;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><em>[<?php echo (date('m-d',$value["addtime"])); ?>]</em><a href="<?php echo U('/NewsDetails/index','id='.$value['id']);?>" title="<?php echo ($value["ftitle"]); ?>" target="_blank"><?php echo ($value["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="right">
            <div class="hot">
                <h2>本月热门新闻</h2>
                <ul>
                   <?php if(is_array($monthhot)): $i = 0; $__LIST__ = $monthhot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><em>[<?php echo (date('m-d',$value["addtime"])); ?>]</em><a href="<?php echo U('/NewsDetails/index','id='.$value['id']);?>" target="_blank" title="<?php echo ($value["ftitle"]); ?>"><?php echo (cuttext($value["title"],11)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?> 
                </ul>
            </div>
            
            <div class="commend">
                <h2>本月评论最多</h2>
                <ul>
                    <?php if(is_array($monthcommend)): $i = 0; $__LIST__ = $monthcommend;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><em>[<?php echo (date('m-d',$value["addtime"])); ?>]</em><a href="<?php echo U('/NewsDetails/index','id='.$value['id']);?>" target="_blank" title="<?php echo ($value["ftitle"]); ?>"><?php echo (cuttext($value["title"],11)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
    </div>
    <div id="picnews">
        <h2>图文资讯</h2>
        <?php if(is_array($picnews)): $i = 0; $__LIST__ = $picnews;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><dl>
                <dt><a href="<?php echo U('/NewsDetails/index','id='.$value['id']);?>"  target="_blank"><img src="__ROOT__/<?php echo ($value["thumbnail"]); ?>" /></a></dt>
                <dd><a href="<?php echo U('/NewsDetails/index','id='.$value['id']);?>" title="<?php echo ($value["ftitle"]); ?>" target="_blank"><?php echo (cuttext($value["title"],16)); ?></a></dd>
            </dl><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div id="infos">
        <?php if(is_array($listnews)): $k = 0; $__LIST__ = $listnews;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($k % 2 );++$k;?><div class="list <?php if($k%2==0): ?>right<?php endif; ?>">
                <h2><?php echo ($value["name"]); ?><a href="<?php echo U('/NewsList/index','id='.$value['id']);?>" target="_blank">更多</a></h2>
                <ul>
                   <?php if(is_array($value["mynews"])): $i = 0; $__LIST__ = $value["mynews"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li <?php if($i%2!=0): ?>class="sin"<?php endif; ?>><em>[<?php echo (date('m-d',$v["addtime"])); ?>]</em> <a href="<?php echo U('/NewsDetails/index','id='.$v['id']);?>" target="_blank"><?php echo ($v["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                   
                </ul>
            </div><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
<div id="flinks">
    <h2>友情链接</h2>  
    <ul>
        <?php if(is_array($flinks)): $i = 0; $__LIST__ = $flinks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($value["url"]); ?>" target="_blank"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>  
</div>
<div id="footer">
    <p>©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>

</body>
</html>